export default {
  data() {
    return {
      // 默认分享内容
      shareMixin: {
        title: '锦龙汽车集团 ZEEKR',
        path: '/pages/index',
        query: '',
        imageUrl: '', // 分享图片
      },
    }
  },
  // 1.发送给朋友
  onShareAppMessage(res) {
    let { path, title, query } = this.shareMixin
    return {
      title,
      path: query ? `${path}?${query}` : path,
    }
  },
  //2.分享到朋友圈
  onShareTimeline(res) {
    let { path, title, query,imageUrl } = this.shareMixin
    return {
      path,
      title,
      query,
      imageUrl
    }
  },
}
